package com.zjm.structural.facade;

public class Popcorn {
    // 饿汉式单例模式
    private static final Popcorn instance = new Popcorn();

    private Popcorn() {

    }

    public static Popcorn getInstance() {
        return instance;
    }

    public void on(){
        System.out.println("POPCORN ON");
    }

    public void off(){
        System.out.println("POPCORN OFF");
    }

    public void pop(){
        System.out.println("POPCORN POP");
    }

}
